{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nconst Paragraph = props => {\n  const getWidth = index => {\n    const {\n      width,\n      rows = 2\n    } = props;\n    if (Array.isArray(width)) {\n      return width[index];\n    }\n    // last paragraph\n    if (rows - 1 === index) {\n      return width;\n    }\n    return undefined;\n  };\n  const {\n    prefixCls,\n    className,\n    style,\n    rows\n  } = props;\n  const rowList = _toConsumableArray(Array(rows)).map((_, index) => /*#__PURE__*/\n  // eslint-disable-next-line react/no-array-index-key\n  React.createElement(\"li\", {\n    key: index,\n    style: {\n      width: getWidth(index)\n    }\n  }));\n  return /*#__PURE__*/React.createElement(\"ul\", {\n    className: classNames(prefixCls, className),\n    style: style\n  }, rowList);\n};\nexport default Paragraph;","map":{"version":3,"names":["_toConsumableArray","classNames","React","Paragraph","props","getWidth","index","width","rows","Array","isArray","undefined","prefixCls","className","style","rowList","map","_","createElement","key"],"sources":["/data/messenger.client/node_modules/antd/es/skeleton/Paragraph.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nconst Paragraph = props => {\n  const getWidth = index => {\n    const {\n      width,\n      rows = 2\n    } = props;\n    if (Array.isArray(width)) {\n      return width[index];\n    }\n    // last paragraph\n    if (rows - 1 === index) {\n      return width;\n    }\n    return undefined;\n  };\n  const {\n    prefixCls,\n    className,\n    style,\n    rows\n  } = props;\n  const rowList = _toConsumableArray(Array(rows)).map((_, index) =>\n  /*#__PURE__*/\n  // eslint-disable-next-line react/no-array-index-key\n  React.createElement(\"li\", {\n    key: index,\n    style: {\n      width: getWidth(index)\n    }\n  }));\n  return /*#__PURE__*/React.createElement(\"ul\", {\n    className: classNames(prefixCls, className),\n    style: style\n  }, rowList);\n};\nexport default Paragraph;"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,MAAMC,SAAS,GAAGC,KAAK,IAAI;EACzB,MAAMC,QAAQ,GAAGC,KAAK,IAAI;IACxB,MAAM;MACJC,KAAK;MACLC,IAAI,GAAG;IACT,CAAC,GAAGJ,KAAK;IACT,IAAIK,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;MACxB,OAAOA,KAAK,CAACD,KAAK,CAAC;IACrB;IACA;IACA,IAAIE,IAAI,GAAG,CAAC,KAAKF,KAAK,EAAE;MACtB,OAAOC,KAAK;IACd;IACA,OAAOI,SAAS;EAClB,CAAC;EACD,MAAM;IACJC,SAAS;IACTC,SAAS;IACTC,KAAK;IACLN;EACF,CAAC,GAAGJ,KAAK;EACT,MAAMW,OAAO,GAAGf,kBAAkB,CAACS,KAAK,CAACD,IAAI,CAAC,CAAC,CAACQ,GAAG,CAAC,CAACC,CAAC,EAAEX,KAAK,KAC7D;EACA;EACAJ,KAAK,CAACgB,aAAa,CAAC,IAAI,EAAE;IACxBC,GAAG,EAAEb,KAAK;IACVQ,KAAK,EAAE;MACLP,KAAK,EAAEF,QAAQ,CAACC,KAAK;IACvB;EACF,CAAC,CAAC,CAAC;EACH,OAAO,aAAaJ,KAAK,CAACgB,aAAa,CAAC,IAAI,EAAE;IAC5CL,SAAS,EAAEZ,UAAU,CAACW,SAAS,EAAEC,SAAS,CAAC;IAC3CC,KAAK,EAAEA;EACT,CAAC,EAAEC,OAAO,CAAC;AACb,CAAC;AACD,eAAeZ,SAAS"},"metadata":{},"sourceType":"module"}